package com.bytz.modules.cms.product.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.modules.cms.user.model.IChangeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—产品管理—产品优惠分类等级折扣变动表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@TableName("cms_product_discount_category_level_change")
@ApiModel(value = "ProductDiscountCategoryLevelChange对象", description = "莱宝CMS—产品管理—产品优惠分类等级折扣变动表")
public class ProductDiscountCategoryLevelChange implements Serializable, IChangeEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "商品优惠分类关联等级id")
    private String discountCategoryLevelId;

    @ApiModelProperty(value = "产品优惠分类id")
    private String discountCategoryId;

    @ExcelProperty(value = "分类", index = 1)
    @ApiModelProperty(value = "产品优惠分类名字")
    private String discountCategoryName;

    @ApiModelProperty(value = "产品线等级ID")
    private String productLineLevelId;

    @ExcelProperty(value = "产品线等级", index = 0)
    @ApiModelProperty(value = "产品线等级名称")
    private String productLineLevelName;

    @ExcelProperty("优惠比例(%)")
    @ApiModelProperty(value = "现优惠比例")
    private BigDecimal discountRatio;

    @ApiModelProperty(value = "生效时间")
    private LocalDateTime effectTime;

    @ApiModelProperty(value = "失效时间")
    private LocalDateTime expiredTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "审批批次ID")
    private String auditBatchId;

    @ApiModelProperty(value = "状态（0：未同步，1：已同步）")
    private String syncStatus;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}